home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / comms / mosiac / mosaic_1.2_as225r2 / docs / externalviewerdocs.html < prev    next >
Text File  |  1978-06-29  |  2KB  |  55 lines

  1.  
  2. <H1>Making viewing external files a happier experience</H1>
  3.  
  4. <HR>
  5.  
  6. Some of you have been wondering how to change the viewers that are
  7. used for external files.  Doing so requires changing the s:.mailcap
  8. file, and, under some circumstances, the s:.mime.types file. <p>
  9.  
  10. <h2>The S:.Mailcap file</H2>
  11.  
  12. How to change the mailcap file should be reasonably evident. It
  13. consists of type action pairs, on separate lines, with general types
  14. (with * in them) being overridden by specific ones, if they exist.
  15. The action is the name of the program to run to display the external
  16. data, with %s being a place holder for the filename. <p>
  17.  
  18. The most common change you might want to make is to remove the public
  19. screen parameters if you intend to run mosaic on the workbench. The
  20. second most common change would be to replace calls to multiview by
  21. calls to more specific viewers, such as viewtek or oplay, which you
  22. may preferm, or by calls to arexx scripts with more powerful
  23. capabilities (you may, for example, want to write a script that gives
  24. you the option of saving the external file after you have viewed it). <p>
  25.  
  26. Note that the .mailcap file supplied is a simple example, and that you
  27. are encouraged to improve upon it and share your improvements with
  28. others. <p>
  29.  
  30.  
  31. <h2>The s:.mime.types file</h2>
  32.  
  33. Mosaic uses three methods of determining the type of a file to be
  34. displayed: <p>
  35.  
  36. <ol>
  37. <li> If the file is served by an HTTP server (i.e. the url starts
  38. http://), then the server on the remote host tells Mosaic what type
  39. the file is. The server's opinion is presumed to be correct.
  40. The .mime.types file is ignored in this case. (actually, it has to be
  41. an http server running httpd V1.0 or greater - most do).
  42. <li> If the file is served by an FTP, GOPHER or WAIS server, then the
  43. Mosaic client uses the s:.mime.types file to attempt to determine the
  44. file type from its file extension. You may edit the s:.mime.types file
  45. to increase the number of files correctly handled this way. Remember,
  46. you will not change the type of files served via http.
  47. <li> If the file type is not given by the server or the s:.mime.types
  48. file, defaults built into mosaic are used.
  49. </ol>
  50.  
  51. <HR>
  52.  
  53. <h5>(c) 1993 Michael Witbrock</h5>
  54.  
  55.